package ua.kozlovskyi.ClassLoader;

import java.io.BufferedReader;
import java.io.InputStreamReader;

/**
 * Created by Kozlovskyi.
 */
public class Test {
    public static void main(String[] args) throws Exception{
        TestModule t = new TestModule();
        for(;;) {
            ClassLoader loader= new DynamicClassOverloader(new String[] {"."});
            Class clazz= Class.forName("TestModule",true,loader);
            Object object= clazz.newInstance();
            System.out.println(object);
            new BufferedReader(new InputStreamReader(System.in)).readLine();
        }
    }//End method main()
}//End class Test
